#include<stdio.h>
#include<unistd.h>
#include<string.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
int main()
{
    close(0);
    int fd = open("./log.txt",O_RDONLY);
    printf("fd:%d\n",fd);
    char line[64] = {0};
    while(fgets(line,sizeof(line)-1,stdin))
    {
        printf("%s",line);
        memset(line,0,sizeof(line));
    }
    return 0;
}